<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<%@ include file="/common/taglibs.jsp"%>
<%@ include file="/common/meta.jsp"%>
<head>
<title>专家评议详情</title>
<script type="text/javascript" src="${res_app}/js/app/public.js"></script>
<script type="text/javascript" src="${res}/js/review/evpublic.js"></script>
<style>
.table01 TD {
	padding-bottom: 0px;
}
</style>
<script type="text/javascript">
	$(function() {
		$("input[id^=show_expertType_]").hide();
	});
	function switchTagDisplay(objid) {

		var obj = $("table[id^='" + objid + "_']");
		if (obj.is(":hidden")) {
			obj.show();
			$("#show_" + objid).hide();
			$("#hidden_" + objid).show();
			$("input[id^='show_" + objid + "_']").hide();
			$("input[id^='hidden_" + objid + "_']").show();

		}

		else {
			obj.hide();
			$("#show_" + objid).show();
			$("#hidden_" + objid).hide();
			$("input[id^='show_" + objid + "_']").show();
			$("input[id^='hidden_" + objid + "_']").hide();
		}

	}
	function switchTagDisplay2(objid) {
		var obj = $("#" + objid + "_1");
		if (obj.is(":hidden")) {
			obj.show();
			$("#show_" + objid).hide();
			$("#hidden_" + objid).show();

		}

		else {
			obj.hide();
			$("#show_" + objid).show();
			$("#hidden_" + objid).hide();
		}

	}
</script>
</head>
<body>


	<div id="mainDiv">
		<div class="t_bar">项目简要信息</div>
		<table border="0" cellspacing="0" cellpadding="0" class="table01" style="table-layout: fixed; word-break: break-all; word-wrap: break-word">
			<tr>

				<th nowrap>项目名称</th>
				<td align="center">
					<a href="###"
						onclick="evprpView('<iris:des3 code="${evAtvContainer.PRPCODE}|${now}" encryptKey="111111222222333333444444" />','<iris:des3 code="${evAtvContainer.GRANTCODE}|${now}" encryptKey="111111222222333333444444" />','<iris:des3 code="${evAtvContainer.SUBGRANTCODE}|${now}" encryptKey="111111222222333333444444" />')"
						class="yase">${evAtvContainer.ZHTITLE}</a>
				</td>
				<th nowrap>申请人</th>
				<td align="center">
					<a href="###" class="yase" onclick="psnView('<iris:des3 code="${evAtvContainer.PSNCODE}"/>')">${evAtvContainer.PSNCNAME}</a>
				</td>
				<th nowrap>申请单位</th>
				<td align="center">${evAtvContainer.ORGCNAME}</td>
			</tr>
			<tr align="center">
				<th nowrap>项目类别</th>
				<td align="center">${evAtvContainer.GRANTNAME}</td>
				<th nowrap>受理编号</th>
				<td align="center">${evAtvContainer.PRPNO}</td>
				<th nowrap>申请金额</th>
				<td align="center">${evAtvContainer.REQUESTAMT}万元</td>


			</tr>
		</table>

		<div class="clear_h10"></div>
		<div id="tabnav">
			<ul>
				<li class="down" id="tab1" onclick="changeTab(this.id)">
					<a href="#">
						<span>网评意见</span>
					</a>
				</li>
				<!-- <li id="tab2" onclick="changeTab(this.id)"><a href="#"><span>会评意见</span></a></li>
				<li id="tab3" onclick="changeTab(this.id)"><a href="#"><span>考察意见</span></a></li> -->
			</ul>
		</div>
		<br />
		<div id="fragment-tab1">
			<c:set var="index">0</c:set>
			<c:forEach var="vo" items="${evrMsgList}">
				<c:if test="${vo.commentType eq 2}">
					<c:set var="index">${index+1}</c:set>
				</c:if>
			</c:forEach>

			<c:if test="${not empty prpEvComments.EXP_GROUP_COMMENT}">
				<table class="table01" border="0" cellpadding="0" cellspacing="0">
					<tr>
						<td class="t_bar2">专家评审组意见</td>
					</tr>
					<tr>
						<td style="vertical-align: text-top; height: 100px">
							<pre>${prpEvComments.EXP_GROUP_COMMENT}</pre>
						</td>
					</tr>
				</table>
				<br />
			</c:if>
			<table class="table01" border="0" cellpadding="0" cellspacing="0">
				<tr>
					<td class="t_bar2">专家评审意见一览</td>
					<td width="100px" align="left" class="t_bar2">
						<input type="button" class="btn_zk" title="展开" id="show_expertType_01" onclick="javascript:switchTagDisplay('expertType_01');" />
						<input type="button" class="btn_gb" title="收缩" id="hidden_expertType_01" onclick="javascript:switchTagDisplay('expertType_01');" />
					</td>

				</tr>
			</table>

			<c:set var="index">0</c:set>
			<c:forEach var="vo" items="${evrMsgList}">
				<c:if test="${vo.commentType eq 2}">
					<c:set var="index">${index+1}</c:set>
					<table border="0" cellspacing="0" cellpadding="0" class="table01" style="table-layout: fixed; word-break: break-all; word-wrap: break-word">
						<tr align="center">
							<th colspan="4" style="text-align: left;">专家***的综合意见如下</th>
							<th width="100px" style="text-align: center">
								<input type="button" class="btn_zk" title="展开" id="show_expertType_01_${index}" onclick="javascript:switchTagDisplay2('expertType_01_${index}');" />
								<input type="button" class="btn_gb" title="收缩" id="hidden_expertType_01_${index}" onclick="javascript:switchTagDisplay2('expertType_01_${index}');" />
							</th>
						</tr>
					</table>
					<table border="0" cellspacing="0" cellpadding="0" class="table01" id="expertType_01_${index}_1" style="table-layout: fixed; word-break: break-all; word-wrap: break-word">
						<c:if test="${not empty vo.evOpinion }">
							<tr>
								<td align="right" width="100px">评价意见：</td>
								<td>${vo.evOpinion}</td>
							</tr>
						</c:if>
						<c:if test="${not empty vo.totalScore }">
							<tr>
								<td align="right" width="100px">综合分：</td>
								<td>${vo.totalScore}</td>
							</tr>
						</c:if>

						<c:if test="${not empty vo.evComment}">
							<tr>
								<td align="right" width="100px">评审意见：</td>
								<td style="vertical-align: text-top; height: 100px">
									<pre>${vo.evComment}</pre>
								</td>
							</tr>
						</c:if>
					</table>
				</c:if>
			</c:forEach>
			<c:if test="${index==0}">
				<table border="0" cellspacing="0" cellpadding="0" class="table01" id="expertType_01_1">
					<tr>
						<td align="center" style="height: 100px">该项目没有进行网评</td>
					</tr>
				</table>
			</c:if>
		</div>

		<div id="fragment-tab2" style="display: none">
			<c:set var="index">0</c:set>
			<c:forEach var="vo" items="${evrMsgList}">
				<c:if test="${vo.commentType eq 1}">
					<c:set var="index">${index+1}</c:set>
				</c:if>
			</c:forEach>

			<c:if test="${index!=0 and not empty prpEvComments.EXP_GROUP_COMMENT}">
				<table class="table01" border="0" cellpadding="0" cellspacing="0">
					<tr>
						<td class="t_bar2">专家评审组意见</td>
					</tr>
					<tr>
						<td style="vertical-align: text-top; height: 100px">
							<pre>${prpEvComments.EXP_GROUP_COMMENT}</pre>
						</td>
					</tr>
				</table>
				<br />
			</c:if>
			<table class="table01" border="0" cellpadding="0" cellspacing="0">
				<tr>
					<td class="t_bar2">专家评审意见一览</td>
					<td width="100px" align="left" class="t_bar2">
						<input type="button" class="btn_zk" title="展开" id="show_expertType_02" onclick="javascript:switchTagDisplay('expertType_02');" />
						<input type="button" class="btn_gb" title="收缩" id="hidden_expertType_02" onclick="javascript:switchTagDisplay('expertType_02');" />
					</td>

				</tr>
			</table>

			<c:set var="index">0</c:set>
			<c:forEach var="vo" items="${evrMsgList}">
				<c:if test="${vo.commentType eq 1}">
					<c:set var="index">${index+1}</c:set>
					<table border="0" cellspacing="0" cellpadding="0" class="table01">
						<tr align="center">
							<th colspan="4" style="text-align: left;">专家***的综合意见如下</th>
							<th width="100px" style="text-align: center">
								<input type="button" class="btn_zk" title="展开" id="show_expertType_02_${index}" onclick="javascript:switchTagDisplay2('expertType_02_${index}');" />
								<input type="button" class="btn_gb" title="收缩" id="hidden_expertType_02_${index}" onclick="javascript:switchTagDisplay2('expertType_02_${index}');" />
							</th>
						</tr>
					</table>
					<table border="0" cellspacing="0" cellpadding="0" class="table01" id="expertType_02_${index}_1" style="table-layout: fixed; word-break: break-all; word-wrap: break-word">
						<c:if test="${not empty vo.totalScore }">
							<tr>
								<td align="right" width="100px">综合分：</td>
								<td>${vo.totalScore}</td>
							</tr>
						</c:if>
						<c:if test="${not empty vo.evComment}">
							<tr>
								<td align="right" width="100px">评审意见：</td>
								<td style="vertical-align: text-top; height: 100px">
									<pre>${vo.evComment}</pre>
								</td>
							</tr>
						</c:if>
					</table>
				</c:if>
			</c:forEach>
			<c:if test="${index==0}">
				<table border="0" cellspacing="0" cellpadding="0" class="table01" id="expertType_02_1">
					<tr>
						<td align="center" style="height: 100px">该项目没有经行会评</td>
					</tr>
				</table>
			</c:if>
		</div>

		<div id="fragment-tab3" style="display: none">

			<table class="table01" border="0" cellpadding="0" cellspacing="0">
				<tr>
					<td class="t_bar2">专家评审意见一览</td>
					<td width="100px" align="left" class="t_bar2">
						<input type="button" class="btn_zk" title="展开" id="show_expertType_01" onclick="javascript:switchTagDisplay('expertType_03');" />
						<input type="button" class="btn_gb" title="收缩" id="hidden_expertType_01" onclick="javascript:switchTagDisplay('expertType_03');" />
					</td>

				</tr>
			</table>

			<c:set var="index">0</c:set>
			<c:forEach var="vo" items="${evrMsgList}">
				<c:if test="${vo.commentType eq 3}">
					<c:set var="index">${index+1}</c:set>
					<table border="0" cellspacing="0" cellpadding="0" class="table01" id="expertType_03_${index}" style="table-layout: fixed; word-break: break-all; word-wrap: break-word">

						<c:if test="${vo.commentType eq 3}">
							<tr>
								<td align="right" width="100px">综合评价：</td>
								<td>${vo.evResult}</td>
							</tr>
						</c:if>
						<c:if test="${not empty vo.evComment}">
							<tr>
								<td align="right" width="100px">评审意见：</td>
								<td style="vertical-align: text-top; height: 100px">
									<pre>${vo.evComment}</pre>
								</td>
							</tr>
						</c:if>
					</table>
				</c:if>
			</c:forEach>
			<c:if test="${index==0}">
				<table border="0" cellspacing="0" cellpadding="0" class="table01" id="expertType_03_1">
					<tr>
						<td align="center" style="height: 100px">该项目没有经行考察</td>
					</tr>
				</table>
			</c:if>
		</div>
	</div>
</body>
</html>